package cn.smile.config.spring.datasource;

import com.alibaba.druid.support.http.WebStatFilter;
import org.springframework.stereotype.Component;

import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;

/**
 * @Author：毛苏雨
 * @Context：druid过滤器
 */
@WebFilter(
        //该过滤器的名字
        filterName="druidWebStatFilter",
        //拦截的URL，用来监控URL
        urlPatterns="/*",
        initParams={
                //忽略不需要监控的资源
                @WebInitParam(name="exclusions",value="/static/*,/druid/*")
        })
public class DruidStatFilter extends WebStatFilter { }